﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ExplorerPlus.DomainObjects;

namespace ExplorerPlus
{
    class Common
    {
        public static Categories GetDefaultCategory()
        {
            try
            {
                return (Categories)Enum.Parse(typeof(Categories),
                    Configuration.ConfigurationSettings.AppSettings.DefaultCategory,
                    true);
            }
            catch
            {
                return Categories.Books;
            }
        }
    }
}
